import service from "@/utils/request.js"


/**
 * 藏馆列表
 */
export function librarylist(data = {}){
    return service.request({
        url: "/api/v1/librarylist",
        method: "post",
        data
    })
}


/**
 * 添加藏馆
 */
export function libraryadd(data = {}){
    return service.request({
        url: "/api/v1/libraryadd",
        method: "post",
        data
    })
}

/**
 * 藏馆详情
 */
export function librarydetailed(data = {}){
    return service.request({
        url: "/api/v1/librarydetailed",
        method: "post",
        data
    })
}

/**
 * 编辑藏馆
 */
export function libraryupdate(data = {}){
    return service.request({
        url: "/api/v1/libraryupdate",
        method: "post",
        data
    })
}

/**
 * 删除藏馆
 */
export function librarydelete(data = {}){
    return service.request({
        url: "/api/v1/librarydelete",
        method: "post",
        data
    })
}

/**
 * 开馆
 */
export function libraryon(data = {}){
    return service.request({
        url: "/api/v1/libraryon",
        method: "post",
        data
    })
}

/**
 * 开馆
 */
export function libraryoff(data = {}){
    return service.request({
        url: "/api/v1/libraryoff",
        method: "post",
        data
    })
}


/**
 * 获取所有藏馆
 */
export function libraryall(data = {}){
    return service.request({
        url: "/api/v1/libraryall",
        method: "post",
        data
    })
}
